
package pos.entity;

import java.math.BigInteger;
import java.sql.Date;
import java.util.ArrayList;

/**
 * This is an entity class for the purchased item table.
 * @author srikanth ramu
 */
public class PurchasedItem {
    
    //Private column variables
    private long purchaseItemid = 0;
    private long itemId = 0;
    private long orderId = 0;
    private double discount = 0.00;
    private double taxes = 0.00;
    private double price = 0.00;
    private double totalPrice = 0.00;
    private int isPickup = 0;
    private Date createdTime = null;
    private Date modTime = null;
    private String name = null;
    private ArrayList<PriceAdjustment> priceAdjustList = new ArrayList<PriceAdjustment>();
    
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    
    public void setPriceAdjustments(PriceAdjustment adjustment) {
        priceAdjustList.add(adjustment);
    }
    
    public ArrayList<PriceAdjustment> getPriceAdjustments(){
        return priceAdjustList;
    }
    
    public void setPurchaseItemId(long purchaseItemId){
        this.purchaseItemid = purchaseItemId;
    }
    public long getPurchaseItemId(){
        return purchaseItemid;
    }
    public void setOrderId(long orderId){
        this.orderId = orderId;
    }
    public long getOrderId(){
        return orderId;
    }
    public void setItemId(long itemId){
        this.itemId = itemId;
    }
    public long getItemId(){
        return itemId;
    }
    public void setPriceAdjustedAmount(double discount){
        this.discount = discount;
    }
    public double getPriceAdjustedAmount(){
        return discount;
    }
    public void setBasePrice(double price){
        this.price = price;
    }
    public double getBasePrice(){
        return price;
    }
    public void setTotalPrice(double totalPrice){
        this.totalPrice = totalPrice;
    }
    public void setIsToBePicked(int tobePicked){
        this.isPickup = tobePicked;
    }
    public int getIsToBePicked(){
        return isPickup;
    }
    
    public double getTotalPrice(){
        return this.totalPrice;
    }
    public void setDateTimeCreated(Date createTime){
        this.createdTime = createTime;
    }
    public Date getDateTimeCreated(){
        return createdTime;
    }
    public void setDateModified(Date modTime){
        this.modTime = modTime;
    }
    public Date getDateModified(){
        return modTime;
    }

    public double getTotalTaxes() {
        return taxes;
    }

    public void setTaxes(Double sumTax) {
        taxes = sumTax;
    }
    
}
